@use './element-plus.scss';
@use './transition.scss';

html {
  body {
    color: var(--el-text-color-primary);

    #app {
      width: 100%;
      height: 100vh;
    }
  }

  div,
  span {
    box-sizing: border-box;
  }
}

.me-large {
  font-size: var(--el-font-size-base);
}

.me-default {
  font-size: var(--el-font-size-base);
}

.me-small {
  font-size: var(--el-font-size-small);
}

//鼠标变小手
.pointer {
  cursor: pointer;
}

//用felx 子元素居中
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

//去a标签默认样式
a {
  color: unset;
  text-decoration: none;
}

//超出一行...
.ellipsis-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

//超出两行...
.ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

//超出三行...
.ellipsis-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.popover-scrollbar-y {
  margin: 0 -12px;
  padding: 0 12px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar:horizontal {
  height: 8px;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(213, 215, 218);
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  cursor: pointer;
  background-color: rgb(193, 195, 199);
}

.dark ::-webkit-scrollbar-thumb {
  background-color: rgb(56, 56, 59);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background-color: rgb(86, 88, 91);
}

.page-100{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
}
.page-padding{
  padding: calc($page-padding - 10px);
}